import request from "@/utils/request"

export const addOrder = async(data, id) => {
    return request({
        url: "/order",
        method: 'Post',
        data: {
            userid: id,
            shopList: data
        }
    })
}
export const getOrder = async(id) => {
    return request({
        url: '/order?userid=' + id
    })
}